calendar object
bool leap_year
This property is set to true if the current year is a leap year, false otherwise.
int year
This shows the year currently held by the calendar object.
int month
This shows the month currently held by the calendar object.
string month_name
This converts the currently set month into its English name.
int day
This shows the date currently held by the calendar object.
int weekday
This shows the day of the week currently held by the calendar object, where 1=Monday and 7=Sunday.
string weekday_name
This converts the currently set weekday into its English name.
int hour
This shows the hour currently held by the calendar object.
int minute
This shows the minute currently held by the calendar object.
int second
This shows the second currently held by the calendar object.
bool valid
This is set to true if the current date in the calendar object is valid, false otherwise.